<?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'category-form',
        'enableAjaxValidation' => false,
        'enableClientValidation' => true,
        'htmlOptions' => array(
            'class' => 'form-horizontal',
             'enctype' => 'multipart/form-data'
        ),
    ));
?>
<div class="row-fluid">
    <div class="span12">
        <div class="control-group">
            <label class="control-label">Language</label>
            <div class="controls">
                <input type="text" value="<?php echo $model['language']['name']; ?>" disabled />
                <input type="hidden" name="Translate[id]" value="<?php echo $model['id']; ?>" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Event Code</label>
            <div class="controls">
                <input type="text" value="<?php echo $model['event']['event_code']; ?>" disabled />
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'main_title', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'main_title', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Main title')); ?>
                <span class="help-inline"><?php echo $form->error($model, 'main_title'); ?></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'sub_title', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'sub_title', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Sub title')); ?>
                <span class="help-inline"><?php echo $form->error($model, 'sub_title'); ?></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'sub_title1', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'sub_title1', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'With: Hồ Ngọc Hà, Djs...')); ?>
                <span class="help-inline"><?php echo $form->error($model, 'sub_title1'); ?></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'sub_title2', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'sub_title2', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'With: Hồ Ngọc Hà, Djs...')); ?>
                <span class="help-inline"><?php echo $form->error($model, 'sub_title2'); ?></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'location', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'location', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Location')); ?>
                <span class="help-inline"><?php echo $form->error($model, 'location'); ?></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'address', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'address', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Address')); ?>
                <span class="help-inline"><?php echo $form->error($model, 'address'); ?></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'text_contact', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'text_contact', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Text contact')); ?>
                <span class="help-inline"><?php echo $form->error($model, 'text_contact'); ?></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'text_ticket', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'text_ticket', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Text ticket')); ?>
                <span class="help-inline"><?php echo $form->error($model, 'text_ticket'); ?></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelex($model, 'description', array('class' => 'control-label')); ?>
            <div class="controls">

                <span class="help-inline"><?php echo $form->error($model, 'description'); ?></span>
            </div>
        </div>

        <?php
        $this->widget('ext.editMe.ExtEditMe', array(
            'model' => $model,
            'height' => '250px',
            'width' => '100%',
            'attribute' => 'description',
            'toolbar' => Yii::app()->params['ckeditor'],
            'filebrowserBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html',
            'filebrowserImageBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Images',
            'filebrowserFlashBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Flash',
            'filebrowserUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
            'filebrowserImageUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
            'filebrowserFlashUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
        ));
        ?>
                <div class="form-actions">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        Submit
                    </button>
                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="icon-undo bigger-110"></i>
                        Reset
                    </button>
                </div>
    </div>
</div>

 <?php $this->endWidget(); ?>